import 'package:json_annotation/json_annotation.dart';

part 'jr_comment_model.g.dart';

@JsonSerializable()
class JrCommentModel {
  String? avatar;
  String? nickname;
  String? content;
  String? voicePath;
  int? voiceDuration;
  bool? likedByMe;

  JrCommentModel({
    this.content,
    this.nickname,
    this.avatar,
    this.voicePath,
    this.voiceDuration,
    this.likedByMe,
  });

  factory JrCommentModel.fromJson(Map<String, dynamic> json) => _$JrCommentModelFromJson(json);

  Map<String, dynamic> toJson() => _$JrCommentModelToJson(this);
}
